3.6.30 \(\int \cos ^7(c+d x) (a+b \tan (c+d x))^2 \, dx\) [530]
Optimal. Leaf size=138 \[ -\frac {5 a b \cos ^7(c+d x)}{42 d}+\frac {\left (6 a^2+b^2\right ) \sin (c+d x)}{6 d}-\frac {\left (6 a^2+b^2\right ) \sin ^3(c+d x)}{6 d}+\frac {\left (6 a^2+b^2\right ) \sin ^5(c+d x)}{10 d}-\frac {\left (6 a^2+b^2\right ) \sin ^7(c+d x)}{42 d}-\frac {b \cos ^7(c+d x) (a+b \tan (c+d x))}{6 d} \]
[Out]
-5/42*a*b*cos(d*x+c)^7/d+1/6*(6*a^2+b^2)*sin(d*x+c)/d-1/6*(6*a^2+b^2)*sin(d*x+c)^3/d+1/10*(6*a^2+b^2)*sin(d*x+
c)^5/d-1/42*(6*a^2+b^2)*sin(d*x+c)^7/d-1/6*b*cos(d*x+c)^7*(a+b*tan(d*x+c))/d
________________________________________________________________________________________
Rubi [A]
time = 0.08, antiderivative size = 138, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 3, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.143, Rules used = {3589, 3567,
2713} \begin {gather*} -\frac {\left (6 a^2+b^2\right ) \sin ^7(c+d x)}{42 d}+\frac {\left (6 a^2+b^2\right ) \sin ^5(c+d x)}{10 d}-\frac {\left (6 a^2+b^2\right ) \sin ^3(c+d x)}{6 d}+\frac {\left (6 a^2+b^2\right ) \sin (c+d x)}{6 d}-\frac {5 a b \cos ^7(c+d x)}{42 d}-\frac {b \cos ^7(c+d x) (a+b \tan (c+d x))}{6 d} \end {gather*}
Antiderivative was successfully verified.
[In]
Int[Cos[c + d*x]^7*(a + b*Tan[c + d*x])^2,x]
[Out]
(-5*a*b*Cos[c + d*x]^7)/(42*d) + ((6*a^2 + b^2)*Sin[c + d*x])/(6*d) - ((6*a^2 + b^2)*Sin[c + d*x]^3)/(6*d) + (
(6*a^2 + b^2)*Sin[c + d*x]^5)/(10*d) - ((6*a^2 + b^2)*Sin[c + d*x]^7)/(42*d) - (b*Cos[c + d*x]^7*(a + b*Tan[c
+ d*x]))/(6*d)
Rule 2713
Int[sin[(c_.) + (d_.)*(x_)]^(n_), x_Symbol] :> Dist[-d^(-1), Subst[Int[Expand[(1 - x^2)^((n - 1)/2), x], x], x
, Cos[c + d*x]], x] /; FreeQ[{c, d}, x] && IGtQ[(n - 1)/2, 0]
Rule 3567
Int[((d_.)*sec[(e_.) + (f_.)*(x_)])^(m_.)*((a_) + (b_.)*tan[(e_.) + (f_.)*(x_)]), x_Symbol] :> Simp[b*((d*Sec[
e + f*x])^m/(f*m)), x] + Dist[a, Int[(d*Sec[e + f*x])^m, x], x] /; FreeQ[{a, b, d, e, f, m}, x] && (IntegerQ[2
*m] || NeQ[a^2 + b^2, 0])
Rule 3589
Int[((d_.)*sec[(e_.) + (f_.)*(x_)])^(m_.)*((a_) + (b_.)*tan[(e_.) + (f_.)*(x_)])^2, x_Symbol] :> Simp[b*(d*Sec
[e + f*x])^m*((a + b*Tan[e + f*x])/(f*(m + 1))), x] + Dist[1/(m + 1), Int[(d*Sec[e + f*x])^m*(a^2*(m + 1) - b^
2 + a*b*(m + 2)*Tan[e + f*x]), x], x] /; FreeQ[{a, b, d, e, f, m}, x] && NeQ[a^2 + b^2, 0] && NeQ[m, -1]
Rubi steps
\begin {align*} \int \cos ^7(c+d x) (a+b \tan (c+d x))^2 \, dx &=-\frac {b \cos ^7(c+d x) (a+b \tan (c+d x))}{6 d}-\frac {1}{6} \int \cos ^7(c+d x) \left (-6 a^2-b^2-5 a b \tan (c+d x)\right ) \, dx\\ &=-\frac {5 a b \cos ^7(c+d x)}{42 d}-\frac {b \cos ^7(c+d x) (a+b \tan (c+d x))}{6 d}-\frac {1}{6} \left (-6 a^2-b^2\right ) \int \cos ^7(c+d x) \, dx\\ &=-\frac {5 a b \cos ^7(c+d x)}{42 d}-\frac {b \cos ^7(c+d x) (a+b \tan (c+d x))}{6 d}-\frac {\left (6 a^2+b^2\right ) \text {Subst}\left (\int \left (1-3 x^2+3 x^4-x^6\right ) \, dx,x,-\sin (c+d x)\right )}{6 d}\\ &=-\frac {5 a b \cos ^7(c+d x)}{42 d}+\frac {\left (6 a^2+b^2\right ) \sin (c+d x)}{6 d}-\frac {\left (6 a^2+b^2\right ) \sin ^3(c+d x)}{6 d}+\frac {\left (6 a^2+b^2\right ) \sin ^5(c+d x)}{10 d}-\frac {\left (6 a^2+b^2\right ) \sin ^7(c+d x)}{42 d}-\frac {b \cos ^7(c+d x) (a+b \tan (c+d x))}{6 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.48, size = 154, normalized size = 1.12 \begin {gather*} -\frac {1050 a b \cos (c+d x)+630 a b \cos (3 (c+d x))+210 a b \cos (5 (c+d x))+30 a b \cos (7 (c+d x))-3675 a^2 \sin (c+d x)-525 b^2 \sin (c+d x)-735 a^2 \sin (3 (c+d x))+35 b^2 \sin (3 (c+d x))-147 a^2 \sin (5 (c+d x))+63 b^2 \sin (5 (c+d x))-15 a^2 \sin (7 (c+d x))+15 b^2 \sin (7 (c+d x))}{6720 d} \end {gather*}
Antiderivative was successfully verified.
[In]
Integrate[Cos[c + d*x]^7*(a + b*Tan[c + d*x])^2,x]
[Out]
-1/6720*(1050*a*b*Cos[c + d*x] + 630*a*b*Cos[3*(c + d*x)] + 210*a*b*Cos[5*(c + d*x)] + 30*a*b*Cos[7*(c + d*x)]
- 3675*a^2*Sin[c + d*x] - 525*b^2*Sin[c + d*x] - 735*a^2*Sin[3*(c + d*x)] + 35*b^2*Sin[3*(c + d*x)] - 147*a^2
*Sin[5*(c + d*x)] + 63*b^2*Sin[5*(c + d*x)] - 15*a^2*Sin[7*(c + d*x)] + 15*b^2*Sin[7*(c + d*x)])/d
________________________________________________________________________________________
Maple [A]
time = 0.20, size = 108, normalized size = 0.78
| | |
method |
result |
size |
| | |
derivativedivides |
\(\frac {b^{2} \left (-\frac {\sin \left (d x +c \right ) \left (\cos ^{6}\left (d x +c \right )\right )}{7}+\frac {\left (\frac {8}{3}+\cos ^{4}\left (d x +c \right )+\frac {4 \left (\cos ^{2}\left (d x +c \right )\right )}{3}\right ) \sin \left (d x +c \right )}{35}\right )-\frac {2 a b \left (\cos ^{7}\left (d x +c \right )\right )}{7}+\frac {a^{2} \left (\frac {16}{5}+\cos ^{6}\left (d x +c \right )+\frac {6 \left (\cos ^{4}\left (d x +c \right )\right )}{5}+\frac {8 \left (\cos ^{2}\left (d x +c \right )\right )}{5}\right ) \sin \left (d x +c \right )}{7}}{d}\) |
\(108\) |
default |
\(\frac {b^{2} \left (-\frac {\sin \left (d x +c \right ) \left (\cos ^{6}\left (d x +c \right )\right )}{7}+\frac {\left (\frac {8}{3}+\cos ^{4}\left (d x +c \right )+\frac {4 \left (\cos ^{2}\left (d x +c \right )\right )}{3}\right ) \sin \left (d x +c \right )}{35}\right )-\frac {2 a b \left (\cos ^{7}\left (d x +c \right )\right )}{7}+\frac {a^{2} \left (\frac {16}{5}+\cos ^{6}\left (d x +c \right )+\frac {6 \left (\cos ^{4}\left (d x +c \right )\right )}{5}+\frac {8 \left (\cos ^{2}\left (d x +c \right )\right )}{5}\right ) \sin \left (d x +c \right )}{7}}{d}\) |
\(108\) |
risch |
\(-\frac {5 a b \cos \left (d x +c \right )}{32 d}+\frac {35 a^{2} \sin \left (d x +c \right )}{64 d}+\frac {5 b^{2} \sin \left (d x +c \right )}{64 d}-\frac {a b \cos \left (7 d x +7 c \right )}{224 d}+\frac {\sin \left (7 d x +7 c \right ) a^{2}}{448 d}-\frac {\sin \left (7 d x +7 c \right ) b^{2}}{448 d}-\frac {a b \cos \left (5 d x +5 c \right )}{32 d}+\frac {7 \sin \left (5 d x +5 c \right ) a^{2}}{320 d}-\frac {3 \sin \left (5 d x +5 c \right ) b^{2}}{320 d}-\frac {3 a b \cos \left (3 d x +3 c \right )}{32 d}+\frac {7 \sin \left (3 d x +3 c \right ) a^{2}}{64 d}-\frac {\sin \left (3 d x +3 c \right ) b^{2}}{192 d}\) |
\(193\) |
| | |
|
|
|
Verification of antiderivative is not currently implemented for this CAS.
[In]
int(cos(d*x+c)^7*(a+b*tan(d*x+c))^2,x,method=_RETURNVERBOSE)
[Out]
1/d*(b^2*(-1/7*sin(d*x+c)*cos(d*x+c)^6+1/35*(8/3+cos(d*x+c)^4+4/3*cos(d*x+c)^2)*sin(d*x+c))-2/7*a*b*cos(d*x+c)
^7+1/7*a^2*(16/5+cos(d*x+c)^6+6/5*cos(d*x+c)^4+8/5*cos(d*x+c)^2)*sin(d*x+c))
________________________________________________________________________________________
Maxima [A]
time = 0.27, size = 98, normalized size = 0.71 \begin {gather*} -\frac {30 \, a b \cos \left (d x + c\right )^{7} + 3 \, {\left (5 \, \sin \left (d x + c\right )^{7} - 21 \, \sin \left (d x + c\right )^{5} + 35 \, \sin \left (d x + c\right )^{3} - 35 \, \sin \left (d x + c\right )\right )} a^{2} - {\left (15 \, \sin \left (d x + c\right )^{7} - 42 \, \sin \left (d x + c\right )^{5} + 35 \, \sin \left (d x + c\right )^{3}\right )} b^{2}}{105 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate(cos(d*x+c)^7*(a+b*tan(d*x+c))^2,x, algorithm="maxima")
[Out]
-1/105*(30*a*b*cos(d*x + c)^7 + 3*(5*sin(d*x + c)^7 - 21*sin(d*x + c)^5 + 35*sin(d*x + c)^3 - 35*sin(d*x + c))
*a^2 - (15*sin(d*x + c)^7 - 42*sin(d*x + c)^5 + 35*sin(d*x + c)^3)*b^2)/d
________________________________________________________________________________________
Fricas [A]
time = 0.36, size = 94, normalized size = 0.68 \begin {gather*} -\frac {30 \, a b \cos \left (d x + c\right )^{7} - {\left (15 \, {\left (a^{2} - b^{2}\right )} \cos \left (d x + c\right )^{6} + 3 \, {\left (6 \, a^{2} + b^{2}\right )} \cos \left (d x + c\right )^{4} + 4 \, {\left (6 \, a^{2} + b^{2}\right )} \cos \left (d x + c\right )^{2} + 48 \, a^{2} + 8 \, b^{2}\right )} \sin \left (d x + c\right )}{105 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate(cos(d*x+c)^7*(a+b*tan(d*x+c))^2,x, algorithm="fricas")
[Out]
-1/105*(30*a*b*cos(d*x + c)^7 - (15*(a^2 - b^2)*cos(d*x + c)^6 + 3*(6*a^2 + b^2)*cos(d*x + c)^4 + 4*(6*a^2 + b
^2)*cos(d*x + c)^2 + 48*a^2 + 8*b^2)*sin(d*x + c))/d
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \left (a + b \tan {\left (c + d x \right )}\right )^{2} \cos ^{7}{\left (c + d x \right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate(cos(d*x+c)**7*(a+b*tan(d*x+c))**2,x)
[Out]
Integral((a + b*tan(c + d*x))**2*cos(c + d*x)**7, x)
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 52002 vs.
\(2 (126) = 252\).
time = 97.44, size = 52002, normalized size = 376.83 \begin {gather*} \text {Too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate(cos(d*x+c)^7*(a+b*tan(d*x+c))^2,x, algorithm="giac")
[Out]
-1/26880*(945*pi*a*b*sgn(tan(1/2*d*x)^2*tan(1/2*c)^2 + 2*tan(1/2*d*x)^2*tan(1/2*c) + tan(1/2*d*x)^2 - tan(1/2*
c)^2 + 2*tan(1/2*c) - 1)*sgn(tan(1/2*d*x)^2*tan(1/2*c)^2 + 2*tan(1/2*d*x)*tan(1/2*c)^2 - tan(1/2*d*x)^2 + tan(
1/2*c)^2 + 2*tan(1/2*d*x) - 1)*tan(1/2*d*x)^14*tan(1/2*c)^14 + 945*pi*a*b*sgn(tan(1/2*d*x)^2*tan(1/2*c)^2 - 2*
tan(1/2*d*x)^2*tan(1/2*c) + tan(1/2*d*x)^2 - tan(1/2*c)^2 - 2*tan(1/2*c) - 1)*sgn(tan(1/2*d*x)^2*tan(1/2*c)^2
- 2*tan(1/2*d*x)*tan(1/2*c)^2 - tan(1/2*d*x)^2 + tan(1/2*c)^2 - 2*tan(1/2*d*x) - 1)*tan(1/2*d*x)^14*tan(1/2*c)
^14 + 945*pi*a*b*sgn(tan(1/2*d*x)^2*tan(1/2*c)^2 + 2*tan(1/2*d*x)^2*tan(1/2*c) + tan(1/2*d*x)^2 - tan(1/2*c)^2
+ 2*tan(1/2*c) - 1)*tan(1/2*d*x)^14*tan(1/2*c)^14 + 945*pi*a*b*sgn(tan(1/2*d*x)^2*tan(1/2*c)^2 - 2*tan(1/2*d*
x)^2*tan(1/2*c) + tan(1/2*d*x)^2 - tan(1/2*c)^2 - 2*tan(1/2*c) - 1)*tan(1/2*d*x)^14*tan(1/2*c)^14 + 8400*pi*a*
b*sgn(tan(1/2*d*x)^2*tan(1/2*c)^2 - tan(1/2*d*x)^2 - 4*tan(1/2*d*x)*tan(1/2*c) - tan(1/2*c)^2 + 1)*tan(1/2*d*x
)^14*tan(1/2*c)^14 + 6615*pi*a*b*sgn(tan(1/2*d*x)^2*tan(1/2*c)^2 + 2*tan(1/2*d*x)^2*tan(1/2*c) + tan(1/2*d*x)^
2 - tan(1/2*c)^2 + 2*tan(1/2*c) - 1)*sgn(tan(1/2*d*x)^2*tan(1/2*c)^2 + 2*tan(1/2*d*x)*tan(1/2*c)^2 - tan(1/2*d
*x)^2 + tan(1/2*c)^2 + 2*tan(1/2*d*x) - 1)*tan(1/2*d*x)^14*tan(1/2*c)^12 + 6615*pi*a*b*sgn(tan(1/2*d*x)^2*tan(
1/2*c)^2 - 2*tan(1/2*d*x)^2*tan(1/2*c) + tan(1/2*d*x)^2 - tan(1/2*c)^2 - 2*tan(1/2*c) - 1)*sgn(tan(1/2*d*x)^2*
tan(1/2*c)^2 - 2*tan(1/2*d*x)*tan(1/2*c)^2 - tan(1/2*d*x)^2 + tan(1/2*c)^2 - 2*tan(1/2*d*x) - 1)*tan(1/2*d*x)^
14*tan(1/2*c)^12 + 6615*pi*a*b*sgn(tan(1/2*d*x)^2*tan(1/2*c)^2 + 2*tan(1/2*d*x)^2*tan(1/2*c) + tan(1/2*d*x)^2
- tan(1/2*c)^2 + 2*tan(1/2*c) - 1)*sgn(tan(1/2*d*x)^2*tan(1/2*c)^2 + 2*tan(1/2*d*x)*tan(1/2*c)^2 - tan(1/2*d*x
)^2 + tan(1/2*c)^2 + 2*tan(1/2*d*x) - 1)*tan(1/2*d*x)^12*tan(1/2*c)^14 + 6615*pi*a*b*sgn(tan(1/2*d*x)^2*tan(1/
2*c)^2 - 2*tan(1/2*d*x)^2*tan(1/2*c) + tan(1/2*d*x)^2 - tan(1/2*c)^2 - 2*tan(1/2*c) - 1)*sgn(tan(1/2*d*x)^2*ta
n(1/2*c)^2 - 2*tan(1/2*d*x)*tan(1/2*c)^2 - tan(1/2*d*x)^2 + tan(1/2*c)^2 - 2*tan(1/2*d*x) - 1)*tan(1/2*d*x)^12
*tan(1/2*c)^14 - 5880*pi*a*b*tan(1/2*d*x)^14*tan(1/2*c)^14 - 1890*a*b*arctan((tan(1/2*d*x)*tan(1/2*c) + tan(1/
2*d*x) - tan(1/2*c) + 1)/(tan(1/2*d*x)*tan(1/2*c) - tan(1/2*d*x) + tan(1/2*c) + 1))*tan(1/2*d*x)^14*tan(1/2*c)
^14 - 1890*a*b*arctan((tan(1/2*d*x)*tan(1/2*c) - tan(1/2*d*x) + tan(1/2*c) + 1)/(tan(1/2*d*x)*tan(1/2*c) + tan
(1/2*d*x) - tan(1/2*c) + 1))*tan(1/2*d*x)^14*tan(1/2*c)^14 - 9870*a*b*arctan((tan(1/2*d*x)*tan(1/2*c) + tan(1/
2*d*x) + tan(1/2*c) - 1)/(tan(1/2*d*x)*tan(1/2*c) - tan(1/2*d*x) - tan(1/2*c) - 1))*tan(1/2*d*x)^14*tan(1/2*c)
^14 - 9870*a*b*arctan((tan(1/2*d*x)*tan(1/2*c) - tan(1/2*d*x) - tan(1/2*c) - 1)/(tan(1/2*d*x)*tan(1/2*c) + tan
(1/2*d*x) + tan(1/2*c) - 1))*tan(1/2*d*x)^14*tan(1/2*c)^14 + 6615*pi*a*b*sgn(tan(1/2*d*x)^2*tan(1/2*c)^2 + 2*t
an(1/2*d*x)^2*tan(1/2*c) + tan(1/2*d*x)^2 - tan(1/2*c)^2 + 2*tan(1/2*c) - 1)*tan(1/2*d*x)^14*tan(1/2*c)^12 + 6
615*pi*a*b*sgn(tan(1/2*d*x)^2*tan(1/2*c)^2 - 2*tan(1/2*d*x)^2*tan(1/2*c) + tan(1/2*d*x)^2 - tan(1/2*c)^2 - 2*t
an(1/2*c) - 1)*tan(1/2*d*x)^14*tan(1/2*c)^12 + 58800*pi*a*b*sgn(tan(1/2*d*x)^2*tan(1/2*c)^2 - tan(1/2*d*x)^2 -
4*tan(1/2*d*x)*tan(1/2*c) - tan(1/2*c)^2 + 1)*tan(1/2*d*x)^14*tan(1/2*c)^12 + 6615*pi*a*b*sgn(tan(1/2*d*x)^2*
tan(1/2*c)^2 + 2*tan(1/2*d*x)^2*tan(1/2*c) + tan(1/2*d*x)^2 - tan(1/2*c)^2 + 2*tan(1/2*c) - 1)*tan(1/2*d*x)^12
*tan(1/2*c)^14 + 6615*pi*a*b*sgn(tan(1/2*d*x)^2*tan(1/2*c)^2 - 2*tan(1/2*d*x)^2*tan(1/2*c) + tan(1/2*d*x)^2 -
tan(1/2*c)^2 - 2*tan(1/2*c) - 1)*tan(1/2*d*x)^12*tan(1/2*c)^14 + 58800*pi*a*b*sgn(tan(1/2*d*x)^2*tan(1/2*c)^2
- tan(1/2*d*x)^2 - 4*tan(1/2*d*x)*tan(1/2*c) - tan(1/2*c)^2 + 1)*tan(1/2*d*x)^12*tan(1/2*c)^14 + 7680*a*b*tan(
1/2*d*x)^14*tan(1/2*c)^14 + 19845*pi*a*b*sgn(tan(1/2*d*x)^2*tan(1/2*c)^2 + 2*tan(1/2*d*x)^2*tan(1/2*c) + tan(1
/2*d*x)^2 - tan(1/2*c)^2 + 2*tan(1/2*c) - 1)*sgn(tan(1/2*d*x)^2*tan(1/2*c)^2 + 2*tan(1/2*d*x)*tan(1/2*c)^2 - t
an(1/2*d*x)^2 + tan(1/2*c)^2 + 2*tan(1/2*d*x) - 1)*tan(1/2*d*x)^14*tan(1/2*c)^10 + 19845*pi*a*b*sgn(tan(1/2*d*
x)^2*tan(1/2*c)^2 - 2*tan(1/2*d*x)^2*tan(1/2*c) + tan(1/2*d*x)^2 - tan(1/2*c)^2 - 2*tan(1/2*c) - 1)*sgn(tan(1/
2*d*x)^2*tan(1/2*c)^2 - 2*tan(1/2*d*x)*tan(1/2*c)^2 - tan(1/2*d*x)^2 + tan(1/2*c)^2 - 2*tan(1/2*d*x) - 1)*tan(
1/2*d*x)^14*tan(1/2*c)^10 + 46305*pi*a*b*sgn(tan(1/2*d*x)^2*tan(1/2*c)^2 + 2*tan(1/2*d*x)^2*tan(1/2*c) + tan(1
/2*d*x)^2 - tan(1/2*c)^2 + 2*tan(1/2*c) - 1)*sgn(tan(1/2*d*x)^2*tan(1/2*c)^2 + 2*tan(1/2*d*x)*tan(1/2*c)^2 - t
an(1/2*d*x)^2 + tan(1/2*c)^2 + 2*tan(1/2*d*x) - 1)*tan(1/2*d*x)^12*tan(1/2*c)^12 + 46305*pi*a*b*sgn(tan(1/2*d*
x)^2*tan(1/2*c)^2 - 2*tan(1/2*d*x)^2*tan(1/2*c) + tan(1/2*d*x)^2 - tan(1/2*c)^2 - 2*tan(1/2*c) - 1)*sgn(tan(1/
2*d*x)^2*tan(1/2*c)^2 - 2*tan(1/2*d*x)*tan(1/2*c)^2 - tan(1/2*d*x)^2 + tan(1/2*c)^2 - 2*tan(1/2*d*x) - 1)*tan(
1/2*d*x)^12*tan(1/2*c)^12 - 41160*pi*a*b*tan(1/2*d*x)^14*tan(1/2*c)^12 - 13230*a*b*arctan((tan(1/2*d*x)*tan(1/
2*c) + tan(1/2*d*x) - tan(1/2*c) + 1)/(tan(1/2*...
________________________________________________________________________________________
Mupad [B]
time = 3.84, size = 176, normalized size = 1.28 \begin {gather*} \frac {16\,a^2\,\sin \left (c+d\,x\right )}{35\,d}+\frac {8\,b^2\,\sin \left (c+d\,x\right )}{105\,d}+\frac {8\,a^2\,{\cos \left (c+d\,x\right )}^2\,\sin \left (c+d\,x\right )}{35\,d}+\frac {6\,a^2\,{\cos \left (c+d\,x\right )}^4\,\sin \left (c+d\,x\right )}{35\,d}+\frac {a^2\,{\cos \left (c+d\,x\right )}^6\,\sin \left (c+d\,x\right )}{7\,d}+\frac {4\,b^2\,{\cos \left (c+d\,x\right )}^2\,\sin \left (c+d\,x\right )}{105\,d}+\frac {b^2\,{\cos \left (c+d\,x\right )}^4\,\sin \left (c+d\,x\right )}{35\,d}-\frac {b^2\,{\cos \left (c+d\,x\right )}^6\,\sin \left (c+d\,x\right )}{7\,d}-\frac {2\,a\,b\,{\cos \left (c+d\,x\right )}^7}{7\,d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
int(cos(c + d*x)^7*(a + b*tan(c + d*x))^2,x)
[Out]
(16*a^2*sin(c + d*x))/(35*d) + (8*b^2*sin(c + d*x))/(105*d) + (8*a^2*cos(c + d*x)^2*sin(c + d*x))/(35*d) + (6*
a^2*cos(c + d*x)^4*sin(c + d*x))/(35*d) + (a^2*cos(c + d*x)^6*sin(c + d*x))/(7*d) + (4*b^2*cos(c + d*x)^2*sin(
c + d*x))/(105*d) + (b^2*cos(c + d*x)^4*sin(c + d*x))/(35*d) - (b^2*cos(c + d*x)^6*sin(c + d*x))/(7*d) - (2*a*
b*cos(c + d*x)^7)/(7*d)
________________________________________________________________________________________